package com.sunshine.homepage.entity;

import java.util.Date;
import java.io.Serializable;

/**
 * 购物车表(ShoppingCarts)实体类
 *
 * @author makejava
 * @since 2025-09-24 15:33:21
 */
public class ShoppingCarts implements Serializable {
    private static final long serialVersionUID = 761903782675773214L;
/**
     * 购物车项唯一标识符
     */
    private Long cartId;
/**
     * 关联用户ID
     */
    private Long userId;
/**
     * 关联商品ID
     */
    private Long productId;
/**
     * 关联SKUID（已弃用）
     */
    private Long skuId;
/**
     * 购买数量
     */
    private Integer quantity;
/**
     * 添加时间
     */
    private Date addedTime;


    public Long getCartId() {
        return cartId;
    }

    public void setCartId(Long cartId) {
        this.cartId = cartId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Date getAddedTime() {
        return addedTime;
    }

    public void setAddedTime(Date addedTime) {
        this.addedTime = addedTime;
    }

}

